import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      component: () => import("@/layout/index.vue"),
      children: [
        {
          path: "",
          name: "home",
          component: () => import("@/views/Welcome.vue"),
        },
        {
          path: "editor",
          name: "editor",
          component: () => import("@/components/RichEditor.vue"),
        },
        {
          path: "recycle-bin",
          name: "RecycleBin",
          component: () => import("@/views/recycleBin.vue"),
        },
      ],
    },
  ],
});

export default router;
